package com.java.comprehensive.design.building_modelling.factory_pattern.cainiao;

/**
 * @program: comprehensive-service
 *
 * @description: 工厂设计模式
 *
 * @author: 窦绍飞
 *
 * @create: 2021-11-23 16:26
 **/
public class FactoryPatternDemo {
	public static void main(String[] args) {

		ShapeFactory shapeFactory = new ShapeFactory();
		// 根据类型 按照工厂模式的特征 创建不同的对象
		Shape shape = shapeFactory.getShape(ShapeFactory.CIRCLE);
		shape.draw();
	}
}
